<template>
            <button style="color:red" @click="t">
                {{title}}
            </button>
</template>

<script>
export default {
    props:{
       title:{
           type:String,//数据类型
           default:"按钮默认值"//值
       }},
    data(){
     return{}
   },
    methods: {
         t(){
             this.$emit('click')
         }       
        }
}
</script>
<style scoped>
</style>
